package ru.compft.web.event;

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

/**
 * User: ASUS
 * Date: 19.06.12
 * Time: 23:20
 * Слушатель фаз страницы.
 * Время ее генерации и прочее.
 */
public class ProfilingPage implements PhaseListener {
    @Override
    public void afterPhase(PhaseEvent event) {
        System.out.println("afterPhase event = " + event.getPhaseId());
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public void beforePhase(PhaseEvent event) {
        System.out.println("beforePhase event = " + event.getPhaseId());
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public PhaseId getPhaseId() {
        return PhaseId.ANY_PHASE;
    }
}
